package cloud.ben.smallscalepigfarmmanagementsystem.service.pig;

import cloud.ben.smallscalepigfarmmanagementsystem.entity.pig.PigNurseryDeathRecords;
import cloud.ben.smallscalepigfarmmanagementsystem.entity.pig.PigPurchaseRecords;
import cloud.ben.smallscalepigfarmmanagementsystem.utils.RespBean;

/**
 * @Author: Ben
 * @Date: 2022/4/6 11:31
 */
public interface IPigPurchaseRecordsService {

    /**
     * 增加保生猪购入记录信息
     * @param pigPurchaseRecords
     * @return RespBean
     */
    RespBean insertPigPurchaseRecords(PigPurchaseRecords pigPurchaseRecords);

    /**
     *根据id删除生猪购入记录信息
     * @param id
     * @return RespBean
     */
    RespBean deletePigPurchaseRecords(Integer id);

    /**
     * 修改生猪购入记录信息
     * @param pigPurchaseRecords
     * @return RespBean
     */
    RespBean updatePigPurchaseRecords(PigPurchaseRecords pigPurchaseRecords);


    /**
     * 分页查询生猪购入记录信息
     * @param pageNumber
     * @param pageSize
     * @return RespBean
     */
    RespBean selectPigPurchaseRecordsByPage(Integer pageNumber,Integer pageSize);

    /**
     *查询生猪购入记录数量（方便分页）
     * @return RespBean
     */
    RespBean selectPigPurchaseRecordsNum();
}
